From bb30f56868ae4888a8ac5a406c7c7ee2ff168f9b Mon Sep 17 00:00:00 2001 From: Justin Burkett Date: Fri, 7 Apr 2017 09:05:10 -0400 Subject: [PATCH] Fix customize type for replacement-alist Ref #165 --- which-key.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/which-key.el b/which-key.el index cc3cc0dc81c..825e1cb0377 100644 --- a/which-key.el +++ b/which-key.el @@ -183,8 +183,10 @@ Finally, you can multiple replacements to occur for a given key binding by setting `which-key-allow-multiple-replacements' to a non-nil value." :group 'which-key - :type '(alist :key-type (alist :key-type regexp :value-type regexp) - :value-type (alist :key-type regexp :value-type regexp))) + :type '(alist :key-type (cons (choice regexp nil) + (choice regexp nil)) + :value-type (cons (choice string nil) + (choice string nil)))) (when (bound-and-true-p which-key-key-replacement-alist) (mapc -- 2.30.2